<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<h1>공지사항 올리기</h1>
<script type="text/javascript">
	function checkForm() {
		var f = document.writeNoticeForm;
		if(f.title.value=="") {
			alert("제목을 입력하세요.");
			f.title.focus();
		} else if (f.content.value=="") {
			alert("내용을 입력하세요.");
			f.content.focus();
		} else {
			return true;
		}
		return false;
	}
</script>
<form id="writeNoticeForm" action="writeNotice.inven" method="post">
<p id="p_title">
제목
<input type="text" id="title" name="title" size="74">
</p>
<textarea id="content" name="content" rows="20" cols="70"></textarea>
<br>
<input type="hidden" name="category" value="notice">
<input type="hidden" name="contentType" value="1">
<input type="hidden" name="id" value="${sessionScope.mvo.id }">
<input type="hidden" name="ref" value="1">
<input type="submit" value="공지올리기">
</form>